﻿<%@ Page Title="BizTalk Alerts" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Alerts.aspx.cs" Inherits="Biztalk_Alerts.Alerts" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="">
        <h1>
            <a href="#">
                <span class="glyphicon glyphicon-cloud"></span>Biztalk Monitoring Tool
            </a>
        </h1>
    </div>
    <div class="row" style="height:100px;padding-left: 15px;padding-right: 15px;">
        <div class="col-md-4" style="width:330px; height:400px; overflow:scroll;">
            <p>Select Application</p>
            <p>
                <asp:GridView ID="grdApplication" runat="server"
                    CssClass="table table-hover table-striped" GridLines="Horizontal"
                    AutoGenerateColumns="False" AllowSorting="True" CellPadding="4" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px"
                    OnSelectedIndexChanged="grdApplication_SelectedIndexChanged" OnRowDataBound="grdApplication_RowDataBound">
                    <Columns>
                        <asp:BoundField DataField="nvcName" ItemStyle-Width = "140px" HeaderText="Application Name" />
                        <asp:ButtonField Text="Click" CommandName="Select" ItemStyle-Width="30">
                            <ItemStyle Width="30px"></ItemStyle>
                        </asp:ButtonField>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#333333" />
                    <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="Black" />
                    <PagerStyle BackColor="#336666" ForeColor="Black" HorizontalAlign="Center" />
                    <RowStyle BackColor="White" ForeColor="#333333" Height="2" />
                    <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="Black" />
                    <SortedAscendingCellStyle BackColor="#F7F7F7" />
                    <SortedAscendingHeaderStyle BackColor="#487575" />
                    <SortedDescendingCellStyle BackColor="#E5E5E5" />
                    <SortedDescendingHeaderStyle BackColor="#275353" />
                </asp:GridView>
            </p>
        </div>
        <div class="col-md-4" style="width:700px; height:400px; overflow:scroll">
            <p><asp:RadioButton runat="server" Text="Select Receive Location To Setup" id="rdoRcvLocation" GroupName="LocationType"/></p>
            <asp:GridView ID="GrdLocationsDetails" runat="server" 
                CssClass="table table-hover table-striped" GridLines="Horizontal" OnRowDataBound="LocationsDetails_RowDataBound"
                AutoGenerateColumns="False" AllowSorting="True" CellPadding="4" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px">
                <Columns>
                    <asp:BoundField DataField="ReceiveLocationName" HeaderText="Receive Location Name" />
                    <asp:BoundField DataField="InboundTransportURL" HeaderText="Inbound Transport URL" />
                    <asp:BoundField DataField="SendPortDisabled" HeaderText="Disabled" />
                    <asp:BoundField DataField="ReceivePortName" HeaderText="Receive Port Name" />
                    <asp:ButtonField Text="Click" CommandName="Select" ItemStyle-Width="30">
                        <ItemStyle Width="30px"></ItemStyle>
                    </asp:ButtonField>
                </Columns>
                <FooterStyle BackColor="White" ForeColor="#333333" />
                <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="Black" />
                <PagerStyle BackColor="#336666" ForeColor="Black" HorizontalAlign="Center" />
                <RowStyle BackColor="White" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="Black" />
                <SortedAscendingCellStyle BackColor="#F7F7F7" />
                <SortedAscendingHeaderStyle BackColor="#487575" />
                <SortedDescendingCellStyle BackColor="#E5E5E5" />
                <SortedDescendingHeaderStyle BackColor="#275353" />
            </asp:GridView>
        </div>
        <div class="col-md-4" style="width:700px; height:400px; overflow:scroll">
            <p><asp:RadioButton runat="server" Text="Select Send Location To Setup" id="rdoSndLocations" GroupName="LocationType"/></p>
            <asp:GridView ID="GrdSndLocation" runat="server" 
                CssClass="table table-hover table-striped" GridLines="Horizontal" OnRowDataBound="GrdSndLocation_RowDataBound"
                AutoGenerateColumns="False" AllowSorting="True" CellPadding="4" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px">
                <Columns>
                    <asp:BoundField DataField="SendLocationName" HeaderText="Send Location Name" />
                    <asp:BoundField DataField="OutboundTransportURL" HeaderText="Outbound Transport URL" />
                    <asp:BoundField DataField="PortStatus" HeaderText="Status" />                    
                    <asp:ButtonField Text="Click" CommandName="Select" ItemStyle-Width="30">
                        <ItemStyle Width="30px"></ItemStyle>
                    </asp:ButtonField>
                </Columns>
                <FooterStyle BackColor="White" ForeColor="#333333" />
                <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="Black" />
                <PagerStyle BackColor="#336666" ForeColor="Black" HorizontalAlign="Center" />
                <RowStyle BackColor="White" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="Black" />
                <SortedAscendingCellStyle BackColor="#F7F7F7" />
                <SortedAscendingHeaderStyle BackColor="#487575" />
                <SortedDescendingCellStyle BackColor="#E5E5E5" />
                <SortedDescendingHeaderStyle BackColor="#275353" />
            </asp:GridView>
        </div>
    </div>
    <div class="row" style="width:auto;height:100px;padding-left: 15px;padding-right: 15px;">
        <div class="col-md-3">
            <asp:CheckBox ID="chkRestartIfStopped" runat="server" Text="Restart If Stopped" />
        </div>
        <div class="col-md-3">
            <asp:CheckBox ID="chkEmail" runat="server" Text="Send Email if not able to resolve." />
        </div>
    </div>
    <div class="row" style="height:100px;padding-left: 15px;padding-right: 15px;">
        <div class="col-md-3">
            <p>Primary</p>
            <asp:TextBox ID="txtEmail1" runat="server"></asp:TextBox>
        </div>

        <div class="col-md-3">
            <p>Secondary</p>
            <asp:TextBox ID="txtEmail2" runat="server"></asp:TextBox>
        </div>

        <div class="col-md-3">
            <p>Others</p>
            <asp:TextBox ID="txtEmail3" runat="server"></asp:TextBox>
        </div>
    </div>
    
    <div class="row" style="height:100px;padding-left: 15px;padding-right: 15px;">
        <div class="col-md-3">
            <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click"></asp:Button>        
        </div>
    </div>
</asp:Content>
